﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Catering.Services
{
    public class AjaxResult
    {
        [Obsolete("请使用 Data 属性返回结果")]
        public AjaxResult(bool success, string sortMsg, string fullMsg)
        {
            Success = success;
            SortMsg = sortMsg;
            FullMsg = fullMsg;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="success"></param>
        /// <param name="result"></param>
        public AjaxResult(bool success, object resultData)
        {
            Success = success;
            Data = resultData;
        }

        /// <summary>
        /// <para>执行是否成功</para>
        /// </summary>
        public bool Success;

        /// <summary>
        /// <para>简短消息</para>
        /// </summary>
        public string SortMsg;

        /// <summary>
        /// <para>完整消息</para>
        /// </summary>
        public string FullMsg;

        /// <summary>
        /// <para>Json 数据</para>
        /// </summary>
        public Object Data;

    }
}